package com.atguigu.common.result;

import lombok.Getter;
import org.springframework.web.bind.annotation.GetMapping;

//枚举类
@Getter
public enum ResultCodeEnum {
    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    LOGIN_MOBLE_ERROR(204, "认证失败")    /*,

    SERVICE_ERROR(2012, "服务异常"),
    DATA_ERROR(204, "数据异常"),
    LOGIN_AUTH(208, "未登陆"),
    PERMISSION(209, "没有权限")*/
    ;
    private final String message;
    private final Integer code;


    private ResultCodeEnum(Integer code, String message) {
        this.message = message;
        this.code = code;

    }
}
